<?php
use yii\helpers\Html;

/* @var $this \yii\web\View */
/* @var $content string */
?>

<header class="main-header">

        <?= Html::a('<span class="logo-mini">管理</span><span class="logo-lg">后台管理</span>', Yii::$app->homeUrl, ['class' => 'logo']) ?>

    <nav class="navbar navbar-static-top" role="navigation">

        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>

        <div class="navbar-custom-menu">

            <ul class="nav navbar-nav">
                <li>
                    <?= Html::a(
                        '图标',
                        ['/site/icons'],
                        ['data-method' => 'post', 'class' => 'btn btn-flat']
                    ) ?>
                </li>
                <li class="dropdown system-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-user"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li>
                            <?= Html::a(
                                Yii::t('common', 'change_password'),
                                ['/admin/user/change-password'],
                                ['data-method' => 'post', 'class' => 'btn btn-flat']
                            ) ?>
                        </li>
                        <li>
                            <?= Html::a(
                                Yii::t('common', 'logout'),
                                ['/site/logout'],
                                ['data-method' => 'post', 'class' => 'btn btn-flat']
                            ) ?>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>
